from com.zjs.crawer.urlcontent.baseurlcontent import BaseUrlContent
from com.zjs.zjsqueue import zurlpathqueue
import logging
# -*- coding: utf-8 -*-
class jobHooks(BaseUrlContent):
    
    __homeurl = None
    
    name = "job"
    
    def __init__(self,homeurl):
        self.__homeurl = homeurl
        print("启动 hook:"+self.name)
    
    
    def run(self):
        for i in range(1,100):
            zurlpathqueue.put(self.name, "http://search.51job.com/list/040000,000000,0000,00,9,99, ,2,"+str(i)+".html?lang=c&stype=&postchannel=0000&workyear=99&cotype=99&degreefrom=99&jobterm=99&companysize=99&providesalary=99&lonlat=0,0&radius=-1&ord_field=0&confirmdate=9&fromType=&dibiaoid=0&address=&line=&specialarea=00&from=&welfare=")
            logging.debug("[jobHook]["+self.name+"]:"+self.name+ "search.51job.com/list/040000,000000,0000,00,9,99, ,2,%d.html?lang=c&stype=&postchannel=0000&workyear=99&cotype=99&degreefrom=99&jobterm=99&companysize=99&providesalary=99&lonlat=0,0&radius=-1&ord_field=0&confirmdate=9&fromType=&dibiaoid=0&address=&line=&specialarea=00&from=&welfare="%i)
